const request = require('request');

const options = {
    url: 'https://www.kuaidi100.com/query?type=yuantong&postid=YT5263426769002&temp=0.4558136110720501&phone=',
    headers: {
        'User-Agent': 'request',
        'Host': 'www.kuaidi100.com',
        'Connection': 'keep-alive',
        'Accept': 'application/json, text/javascript, */*; q=0.01',
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.74',
        'X-Requested-With': 'XMLHttpRequest',
        'Sec-Fetch-Site': 'same-origin',
        'Sec-Fetch-Mode': 'cors',
        'Sec-Fetch-Dest': 'empty',
        'Referer': 'https://www.kuaidi100.com/?from=openv',
        'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
    }
};

function callback(error, response, body) {
    console.log(body);
}

request(options, callback);